using System;
using Framework.Library.Core.Utils.GlobalHelper;
using Framework.Library.Base.Helper;

namespace Framework.Library.Base.UI
{
    public class Button : System.Web.UI.WebControls.Button
    {
        public string LocalizedPage { get; set; }
        public string LocalizedTag { get; set; }
        public string LocalizedType { get; set; }
        public string Param0 { get; set; }
        public string Param1 { get; set; }
        public string Param2 { get; set; }

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            Text = LanguageHelper.Language.GetText(LocalizedPage, LocalizedTag);
        }
    }
}